import App from './App.vue'
import api from '@api'
// #ifndef VUE3
import Vue from 'vue'

import Vconsole from 'vconsole';

new Vconsole();

Vue.config.productionTip = false
Vue.prototype.$api = api
Vue.prototype.$toast = function (message) {
    uni.showToast({
        title: message,
        duration: 2000,
        icon: "none"
    });
}
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
    createSSRApp
} from 'vue'

export function createApp() {
    const app = createSSRApp(App)
    app.config.globalProperties.$serverUrl = "https://unidemo.dcloud.net.cn/";
    return {
        app
    }
}

// #endif
